﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
          "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
    <script language="javascript" type="text/javascript" async="async" src="/ctr.360kad.com/ctrjs/ctr_v2.js"></script>
    <script language="javascript" type="text/javascript" src="http://res.360kad.com/script/envconfig.js"></script>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>用户登录</title>
    <script src="https://res.360kad.com/script/jquery.1.7.1.min.js" type="text/javascript"></script>
    <link href="https://res.360kad.com/theme/user/css/base.css" rel="stylesheet" type="text/css">
    <link href="https://res.360kad.com/theme/user/css/pcLogin.css" rel="stylesheet" type="text/css">
    
    <script src="https://res.360kad.com/script/jquery.placeholder.login.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $('input, textarea').placeholder();
        });

    </script>

    
</head>
<body>
    
<style>
    .error-tip { background-color: #000; opacity: 0.7; -moz-opacity: 0.7; filter: alpha(opacity=70); width: 320px; height: 164px; padding-left: 20px; padding-right: 20px; color: white; font-size: 18px; line-height: 24px; font-family: "微软雅黑"; border-radius: 10px; position: fixed; top: 50%; left: 50%; margin-top: -70px; margin-left: -180px; z-index: 999; }
        .error-tip p:first-child { width: 56px; height: 56px; margin-left: 132px; margin-top: 20px; margin-bottom: 20px; }
            .error-tip p:first-child img { width: 56px; height: 56px; }
</style>
<div id="header" class="header clearfix">
    <div class="header-list1">
        <span class="header-logo"><a href="http://www.360kad.com"><img src="https://res.360kad.com/theme/user/img/login_logo.jpg" /></a></span>
        <p class="header-notice"><img src="https://res.360kad.com/theme/default/img/user/2015/autoSlogo.gif" /></p>
    </div>
    <div class="header-list2">欢迎登录</div>
</div>
<div id="container" class="container" style="background:#4ec3ff">
    <div class="container-wrap clearfix">
        <div class="container-left">
            <img src="http://image.360kad.com/group1/M00/2D/B7/CgAgEVctrCiAC1slAAHd-utbGgk880.jpg" />
        </div>
        <div class="container-right">
            <div class="container-right-wrap">
                <span style="cursor:pointer" class="container-ewm"><img src="https://res.360kad.com/theme/user/img/login_ewm.jpg" /></span>
                <h3 class="login-title">欢迎登录</h3>
                <p style="display:none" class="login-prompt clearfix">
                    <i class="prompt-icon"></i>
                    <span class="prompt-size">公共场所不建议免登录，以防账号丢失，造成不必要损失</span>
                </p>
                <div class="login-input clearfix">
                    <i class="input-icon"></i>
                    <input class="Linput" type="text" name="" oninput="ifLoginName(this);" id="UserName" placeholder="请输入用户名/手机号码/邮箱" />
                </div>
                <div id="idPrompt" class="prompt-wrap">
                    <p class="input-prompt clearfix" style="display:none">
                        <i class="prompt-icon"></i>
                        <span class="prompt-size">您输入的账户名不存在或密码不匹配，请从新输入！</span>
                    </p>
                </div>
                <p class="login-input pwd-input clearfix">
                    <i class="input-icon"></i>
                    <input class="Linput" type="password" oninput="ifPassword(this);" name="" id="UserPassword" value="" placeholder="请输入您的密码" />
                </p>
                <div id="pwdPrompt" class="prompt-wrap">
                    <p class="input-prompt clearfix" style="display:none">
                        <i class="prompt-icon"></i>
                        <span class="prompt-size">密码长度应在6-20位之间！</span>
                    </p>
                </div>
                <p class="login-select clearfix">
                    <input class="Cinput" type="checkbox" name="" onclick="ClickMianDeng(this);" id="IsRemberName" value="false" />
                    <span class="Csize">3天免登录</span>
                </p>
                <a href="javascript:;" id="LoginButton" class="login-btn">登&nbsp;&nbsp;&nbsp;&nbsp;录</a>
                <p class="login-register clearfix">
                    <a href="Register/Mobile?returnUrl=https://www.360kad.com/product/69702.shtml" class="register-left">免费注册></a>
                    <a href="Login/ForgetPassword" class="register-right">忘记密码？</a>
                </p>
                <div class="login-order">
                    <p class="order-title">
                        <span class="order-size">使用合作网站帐号登录康爱多</span>
                    </p>
                    <div class="order-cont">
                        <ul class="clearfix">
                            <li class="li1"><a title="微信登录" href="login/WeChatLogin?ReturnUrl=https%3a%2f%2fwww.360kad.com%2fproduct%2f69702.shtml"></a></li>
                            <li class="li2"><a title="QQ登录" href="login/QzoneLogin?ReturnUrl=https%3a%2f%2fwww.360kad.com%2fproduct%2f69702.shtml"></a></li>
                            
                            <li class="li4"><a title="支付宝登录" href="login/AlipayLogin?ReturnUrl=https%3a%2f%2fwww.360kad.com%2fproduct%2f69702.shtml"></a></li>
                            <li class="li5"><a title="新浪微博登录" href="login/SinaLogin?ReturnUrl=https%3a%2f%2fwww.360kad.com%2fproduct%2f69702.shtml"></a></li>
                            <li class="li6"><a title="健保通（医卡通）登录" href="login/EbaolifeLogin?ReturnUrl=https%3a%2f%2fwww.360kad.com%2fproduct%2f69702.shtml"></a></li>
                        </ul>
                    </div>
                </div>
                <!--部件开始:user_login_agreement,分组:通用部件-->
<div class="login-agreement">
  登录即代表您已同意
  <a href="/help.360kad.com/Shopping/YinSiShengMing" target="_blank" class="login_agreement_link">《康爱多隐私政策》</a>
</div>
<style>
.login-agreement {
     text-align: left;
    font-size: 14px;
    font-weight: 500;
    color: #000;
}
.login-agreement .login_agreement_link {
    color: #409FFB;
}
</style>
<!--部件结束:user_login_agreement-->

            </div>
            <div class="container-right-wrap" style="display: none;" id="qrLogin">
                <span style="cursor:pointer" class="container-ewm"><img src="https://res.360kad.com/theme/user/img/login_pc.jpg" /></span>
                <h3 class="login-title">扫码登录，更安全</h3>
                <div id="qrScan" style="display:block">
                    <div class="sm-pic clearfix">
                        <p class="sm-pic-left fl"><img width="150" src="" id="qrLoginImage" /></p>
                        <p class="sm-pic-right fl"><img src="https://res.360kad.com/theme/user/img/phone-right.jpg" /></p>
                    </div>
                    <div id="qrScanFaild" style="width: 150px; height: 150px; position: absolute; top: 140px; left: 116px; z-index: 10; display: none;">
                        <img src="https://res.360kad.com/theme/user/img/ewm_error.png" id="freshQrImage" style="width: 100%; display: inline-block; cursor: pointer;" />
                    </div>
                    <p class="sm-icon sm-icon2 clearfix"><i><img src="https://res.360kad.com/theme/user/img/smICon.jpg" /></i><span>请使用 <a href="http://www.360kad.com/zhuanti/kad_zsyd.shtml" style="color:#0099ff">康爱多APP</a> 扫码登录</span></p>
                </div>
                <div id="qrScanSuccess" style="display:none">
                    <div class="sm-pic"><img src="https://res.360kad.com/theme/user/img/sm_success.jpg" /></div>
                    <p class="sm-icon clearfix"><i><img src="https://res.360kad.com/theme/user/img/smICon.jpg" /></i><span>扫码成功</span></p>
                    <p class="sm-font">请在手机上确认登录</p>
                </div>
            </div>
        </div>
    </div>
</div>

<div style="display:none">
    <input type="hidden" value="https://www.360kad.com/product/69702.shtml" name="ReturnUrl" id="ReturnUrl" />
    <input name="IsCartLogin" type="hidden" value="false" />
</div>

<div id="errorPop" class="error-tip" style="display:none">
    <p><img src="http://res.360kad.com/theme/mobile/img/RepeatMember/notice_icon.png" alt=""></p>
    <p id="errorPopMessage">未知错误</p>
</div>

    <!--部件开始:footer_userlogin2016,分组:页脚部件-->
<style>
#kad{ color:#666; } 
#footer a:hover {color: red}
}
</style>
<div id="footer" class="footer">
			<div class="footer-container">
				<p class="footer-about">
                                       <a rel="nofollow" href="http://www.360kad.com/zhuanti/pc_pifa.shtml" target="_blank" class="pifa_shop">批发招商<span></span></a> |
					<a rel="nofollow" href="http://help.360kad.com/about/kankan" target="_blank">关于我们</a> | <a href="http://www.360kad.com/zhuanti/kad_zsyd.shtml" target="_blank" rel="nofollow">
						    掌上药店
						</a> | <a rel="nofollow" href="http://help.360kad.com/about/entitygz" target="_blank">
						    实体药店
						</a> | <a rel="nofollow" href="http://help.360kad.com/About/Recruitment" target="_blank">加入康爱多</a> | <a href="http://help.360kad.com/About/CallUs" target="_blank" rel="nofollow">联系我们</a> | <a href="http://www.360kad.com/Supplier" target="_blank" rel="nofollow">商务合作</a>	| <a href="http://help.360kad.com/About/Authen" rel="nofollow" target="_blank">经营认证</a> | 
<a rel="nofollow" href="/help.360kad.com/Shopping/YinSiShengMing" target="_blank">隐私政策</a> |
<a rel="nofollow" href="http://help.360kad.com/About/FriendlyLink" target="_blank">友情链接</a> | <a href="http://www.360kad.com/TagList.aspx" target="_blank">
						    TAG列表
						</a> | <a href="http://www.360kad.com/SiteMap.shtml" target="_blank">网站地图</a> | <a href="http://cps.360kad.com/" target="_blank">CPS联盟</a>
				</p>
				<p class="footer-about">
		            <a class="pr8" rel="nofollow" title="互联网药品交易服务资格证书" target="_blank" href="http://help.360kad.com/about/AuthenBusiness">
		                互联网药品交易服务资格证书
		            </a>| <span class="bottomPadding01">
		                      <a rel="nofollow" title="互联网药品信息服务资格证书" target="_blank" href="http://help.360kad.com/About/AuthenInfo">
		                          互联网药品信息服务资格证书
		                      </a>
		            </span>| <span class="bottomPadding01">
		                         <a rel="nofollow" title="执业药师证" target="_blank" href="http://help.360kad.com/About/AuthenManage">执业药师证</a>
		            </span>| <span class="bottomPadding02">
		                         <a rel="nofollow" title="药品经营许可证" target="_blank" href="http://help.360kad.com/About/AuthenManage">药品经营许可证</a>
		            </span>| <span class="bottomPadding02">
		                         <a rel="nofollow" title="食品流通许可证" target="_blank" href="http://help.360kad.com/About/AuthenLiuTong">
		                             食品流通许可证
		                         </a>
		            </span>| <span class="bottomPadding02">
		                         <a rel="nofollow" title="公司营业执照" target="_blank" href="http://help.360kad.com/About/Authen">公司营业执照</a>
		            </span>| <span>
		                         <a rel="nofollow" title="GSP认证证书" target="_blank" href="http://help.360kad.com/About/AuthenGSP">
		                             GSP认证证书
		                         </a>
		            </span>| <span>
		                         <a href="http://help.360kad.com/About/AuthenTeleservice" target="_blank" rel="nofollow">增值电信业务经营许可证 &nbsp;</a>
		            </span>
		        </p>
		        
<p style="width:350px;margin:0 auto;color:#666;" class="bottom">&copy;2010-2016 广东<a id="kad"  href="http://www.360kad.com">康爱多网上药店</a>版权所有，并保留所有权利</p>
			</div>
		</div>
    <!--百度统计  start -->
    <div style="display: none;">
        <script type="text/javascript">
            var _bdhmProtocol = " https://";
            document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F9dc25c72b2848d6257aafcf33ec1a6db' type='text/javascript'%3E%3C/script%3E"));
        </script>
        
        <!-- 谷歌统计 start -->
        <script type="text/javascript">            var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-3051632-5']); _gaq.push(['_setDomainName', '']); _gaq.push(['_setAllowHash', false]); _gaq.push(['_addOrganic', 'soso', 'w']); _gaq.push(['_addOrganic', 'youdao', 'q']); _gaq.push(['_addOrganic', 'sogou', 'query']); _gaq.push(['_trackPageview']); (function () { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })();</script>
    </div>
<!--部件结束:footer_userlogin2016-->

</body>
</html>

    <script type="text/javascript">
        /*一般错误弹出层-提示*/
        function errorPopShow(message, time) {
            $("#errorPop").show();
            $("#errorPopMessage").html(message);
            setTimeout(function () {
                $("#errorPop").hide();
            }, time);
        }

        function ifLoginName(th) {//验证登录名
            var loginName = $(th).val();
            if (loginName == "") {
                $("#idPrompt p").show();
            }
            else {
                $("#idPrompt p").hide();
            }
        }
        function ifPassword(th) {//验证密码
            var password = $(th).val();
            if (password.length < 6 || password.length > 20) {
                $("#pwdPrompt span").text("密码长度应在6-20位之间！");
                $("#pwdPrompt p").show();
            }
            else {
                $("#pwdPrompt p").hide();
            }
        }

        $(function () {
            if ("0" == "1") {
                errorPopShow("尝试登录次数过多，请稍后再试", 2000);
            }
            var hoverTimer, outTimer;
            $(".sm-pic").hover(function () {
                clearTimeout(outTimer);
                hoverTimer = setTimeout(function () {
                    $(".sm-pic-left").animate({ 'margin-left': '0' }, 500, function () {
                        $(".sm-pic-right").fadeIn(500);
                    });
                }, 500);
            }, function () {
                clearTimeout(hoverTimer);
                outTimer = setTimeout(function () {
                    $(".sm-pic-left").animate({ 'margin-left': '88px' }, 500);
                    $(".sm-pic-right").hide();
                }, 500);
            });

            //登录 begin
            //切换登录
            $(".container-ewm").click(function () {
                var index = $(this).parent().index();
                $(".container-right-wrap").eq(index).hide().siblings(".container-right-wrap").show();
                if (index == 0) {
                    showQrScan();
                }
                else {
                    clearInterval(QRCodeConfig.Timer);
                }
            });



            //回车登录 begin
            $(document).on("keydown", "#UserName,#UserPassword", function (e) {
                if (e.keyCode == 13) {
                    $("#LoginButton").click();
                }
            })


            var isLogin = true;
            //按钮登录
            $("#LoginButton").click(function () {
                if (!isLogin) {
                    return;
                }

                if ($.trim($("#UserName").val()) == "" || $("#UserName").val() == "邮箱/手机号/用户名") {
                    $("#UserName").val("");
                }
                //登录名验证
                var userName = $("#UserName").val();
                if (userName == '') {
                    $("#idPrompt .input-prompt span").html("登录名不能为空！")
                    $("#idPrompt .input-prompt").show();
                    return;
                }
                //密码验证
                var pwd = $("#UserPassword").val();
                if (pwd == '') {
                    $("#pwdPrompt .input-prompt span").html("请输入您的密码！");
                    $("#pwdPrompt .input-prompt").show();
                    return;
                }
                else if (pwd.length < 6 || pwd.length > 20) {
                    $("#pwdPrompt .input-prompt span").html("密码长度应在6-20位之间！");
                    $("#pwdPrompt .input-prompt").show();
                    return;
                }

                isLogin = false;
                $("#LoginButton").text("正在登录...");
                var returnUrl = $("#ReturnUrl").val();
                var isMianDeng = $("#IsRemberName").val();
                $.ajax({
                    url: 'Login/AjaxLoginV2',
                    data: { userName: userName, pass: pwd, isRemberName: isMianDeng, loginPlatform: '1' },
                    type: "post",
                    success: function (data) {
                        if (data.Result) {
                            ctr_land_button('land_button_succ');
                            if (returnUrl == '') {
                                location.href = 'user';
                                return;
                            }
                            location.href = returnUrl;
                            return;
                        }
                        else {
                            if (data.Message == "没有绑定主帐号") {
                                location.href = "Register/RegisterKadMain?guId=" + data.Code + "&returnUrl=" + document.URL;
                            }
                            if (data.Message == "没有验证手机") {
                                window.location.href = "Register/Verification?guId=" + data.Code + "&return=https://www.360kad.com/product/69702.shtml";
                                return;
                            }
                            $("#LoginButton").html("登&nbsp;&nbsp;&nbsp;&nbsp;录");
                            if (data.Code.length > 0) {
                                ctr_land_button('land_button_fail');
                                $("#pwdPrompt .input-prompt span").html(data.Message);
                                $("#pwdPrompt .input-prompt").show();
                            }
                            else {
                                $("#pwdPrompt .input-prompt").hide();
                            }
                        }
                        isLogin = true;
                    },
                    error: function () {
                        $("#LoginButton").html("登&nbsp;&nbsp;&nbsp;&nbsp;录");
                        isLogin = true;
                        ctr_land_button('land_button_fail');
                        alert('系统异常，请重新刷新页面！');
                        window.location.reload();
                    }
                });
            });

            //二维码登录
            var QRCodeConfig = {
                Timer: {},
                ReturnUrl: $("#ReturnUrl").val(),
                code_ul_r_isShow: false
            };

            function checkQRCode() {
                $.ajax({
                    url: "QRCode/QRCodeCheckV2",
                    data: { loginPlatform: "1" },
                    cache: false,
                    dataType: "json",
                    success: function (data) {
                        if (data.Message == "没有验证手机") {
                            location.href = "http://user.360kad.com/register/verification?guId=" + data.Code + "&returnUrl=" + document.URL;
                        }
                        if (data.Result) {
                            clearInterval(QRCodeConfig.Timer);
                            if (QRCodeConfig.ReturnUrl != '') {
                                window.location.href = data.Data + QRCodeConfig.ReturnUrl;
                            }
                            else {
                                window.location.href = data.Data + "User";
                            }
                        }
                        else if (data.Code == 202) {
                            showQrLoginSuccess();
                        }
                        else if (data.Code == 203) {
                            showQrLoginFail();
                        }
                    }
                });
            }
            //刷新二维码
            $("#freshQrImage").click(function () {
                showQrScan();
            });
            //加载二维码
            function showQrScan() {
                $("#qrScan").show();
                $("#qrScanSuccess").hide();
                $("#qrScanFaild").hide();
                $("#qrLoginImage").attr('src', 'QRCode/LoginPC?t=' + (new Date).getTime());
                QRCodeConfig.Timer = setInterval(checkQRCode, 500);
            }

            function showQrLoginFail() {
                $("#qrScan").show();
                $("#qrScanSuccess").hide();
                $("#qrScanFaild").show();
                clearInterval(QRCodeConfig.Timer);
            }

            function showQrLoginSuccess() {
                $("#qrScan").hide();
                $("#qrScanSuccess").show();
            }
            //登录 end
        });

        function ClickMianDeng(obj) {
            if (obj.value == "true") {
                obj.value = "false";
                $(".login-prompt").hide()
            }
            else {
                obj.value = "true";
                $(".login-prompt").show()
            }
        }

        //辅助
        //空格
        function IsEmpty(evt) {
            evt = (evt) ? evt : ((window.event) ? window.event : "")
            var keyCode = evt.keyCode ? evt.keyCode : (evt.which ? evt.which : evt.charCode);
            if (keyCode == 32) {
                return false;
            }
        }

        function setCookie(name, value, date) {
            var Days = date;
            var exp = new Date();
            exp.setTime(exp.getTime() + Days * 24 * 60 * 60 * 1000);
            document.cookie = name + "=" + escape(value) + ";expires=" + exp.toGMTString() + ";path=/";
        }

        function getCookie(name) {
            var arr = document.cookie.match(new RegExp("(^| )" + name + "=([^;]*)(;|$)"));
            if (arr != null) return unescape(arr[2]);
            return null;
        }

        function ctr_land_button() {
            if (typeof ctrActionsend != 'undefined'
                && ctrActionsend instanceof Function) {
                ctrActionsend(arguments[0]);
            }
        }
    </script>

